package com.qys.livesMall.system.enums;

import com.qys.livesMall.common.message.QysLang;

/**
 * Created by IntelliJ IDEA.
 * User: dp
 * Date: 2023/05/16
 * Time: 14:26
 * DESCRIPTION: 异常枚举类
 */
public enum SystemMessageEnum implements QysLang {



    TEMPLATE_TYPE_ERRORS(40001,"template.type.errors"),
    TEMPLATE_CODE_ERRORS(40002,"template.coding.errors"),
    TEMPLATE_CODE_EXISTS(40003,"template.code.already.exists"),
    TEMPLATE_NOT_EXISTS(40004,"template.not.exists"),

    NUMBERS_NOT_SENSITIVE_WORDS(40005,"numbers.not.sensitive.words"),

    SYSTEM_NOT_ID(40006,"system.not.id"),
    SYSTEM_NOT_target(40007,"system.not.target")

    ;


    private final String PROJECT="system";

    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String msgKey;

    SystemMessageEnum(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }

    @Override
    public String PROJECT() {
        return PROJECT;
    }

}
